<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\models\SpeakingContent */

$this->title = "题目id：".$model->id;
$this->params['breadcrumbs'][] = ['label' => 'Speaking Contents', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
$this->registerJsFile('@web/js/setHeight.js',['depends'=>['app\assets\AppAsset']]);
$this->registerJsFile('@web/js/speakcontent.js',['depends'=>['app\assets\AppAsset']]);
?>
<div class="box">
<div class="speaking-content-view">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('Delete', ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'hear_number',
            'question_number:ntext:题号',
            'info:ntext:题目简介',
            'content:ntext:内容',
            'class1_id:ntext:一级分类',
            'class2_id:ntext:二级分类',
            'num:ntext:做过的人数',
            'diff:ntext:难度',
            'direction:ntext:音频direction',
            'topic_content:ntext:音频内容',
            'listening_script:ntext:2.3类听力音频',
            'listening_content:ntext:2.3类听力内容',
            'reading_tips:ntext:3类阅读提示',
            'reading_content:ntext:3类阅读提示',
            'reading_title:ntext:3类阅读题目',
            'type:ntext:题目类型',
            'img_url:url',
        ],
    ]) ?>

</div>
</div>